#!/bin/bash
filename=`basename "$1"`
foo=`gksudo -u root -k -m "enter your password for root terminal access" /bin/echo "got r00t?"`
sudo umount "$1" && zenity --info --text "Successfully unmounted /media/"$filename"/" && sudo rmdir "/media/"$filename"/"

# Only remove the link (in case the original iso is on the Desktop too
find /home/$USER/Desktop/ -type l -name "$filename" -exec rm {} \;
#rm /home/$USER/Desktop/"$filename"
